import '../pages/tabs.dart';
import '../pages/search.dart';
import '../pages/product_list.dart';
import '../pages/product_content.dart';
import '../pages/cart.dart';
import '../pages/login.dart';
import '../pages/register_first.dart';
import '../pages/register_second.dart';
import '../pages/register_third.dart';
import '../pages/check_out.dart';
import '../pages/Address/address_add.dart';
import '../pages/Address/address_edit.dart';
import '../pages/Address/address_list.dart';
import '../pages/pay.dart';
import '../pages/order.dart';
import '../pages/order_info.dart';
import '../pages/setting.dart';
import '../pages/coupon.dart';
import '../pages/member_center.dart';
import '../pages/collect.dart';
import '../pages/pay/pay_error.dart';
import '../pages/comment_list.dart';
import '../pages/my_account/score_detail.dart';
//配置路由
final routes = {
  '/': (context) => Tabs(),
  '/search': (context) => SearchPage(),
  '/cart': (context) => CartPage(),
  '/login': (context) => LoginPage(),
  '/registerFirst': (context) => RegisterFirstPage(),
  '/registerSecond': (context, {arguments}) =>
      RegisterSecondPage(arguments: arguments),
  '/registerThird': (context, {arguments}) =>
      RegisterThirdPage(arguments: arguments),
  '/productList': (context, {arguments}) =>
      ProductListPage(arguments: arguments),
  '/productContent': (context, {arguments}) =>
      ProductContentPage(arguments: arguments),
  '/checkOut': (context) => CheckOutPage(),
  '/addressAdd': (context) => AddressAddPage(),
  '/addressEdit': (context, {arguments}) =>
      AddressEditPage(arguments: arguments),
  '/addressList': (context) => AddressListPage(),
  '/pay': (context) => PayPage(),
  '/order': (context) => OrderPage(),
  '/orderinfo': (context) => OrderInfoPage(),
  '/setting': (context) => SettingPage(),
  '/coupon': (context) => CouponPage(),
  '/member_center': (context) => MemberCenterPage(),
  '/collect': (context) => CollectPage(),
  '/pay_error':(context)=>PayErrorPage(),
  '/comment_list':(context)=>CommentListPage(),
  '/score_detail':(context)=>ScoreDetail(),

};
